package com.kly.user.db.dao;
import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.UserMsgUnreadNumEntity;

import java.util.List;

/**
* User: linqu
* Date: 2023-09-27
* Time: 19:19:08.949
*/

public interface UserMsgUnreadNumDao  extends BaseMapper<UserMsgUnreadNumEntity> {
    int saveUnReadMsgNum(String fromUserCode, String toUserCode, String sessionId, String chatterUserCode);

    int readMessage(String fromUserCode, String toUserCode);

    /**
     * 清除无效账号的未读消息数
     */
    int clearAllUnreadMessageForInvalidAccount();

    List<UserMsgUnreadNumEntity> listModelUnreadReadMsgNum(List<String> modelCodes);
}